package com.stottlerhenke.simbionic.common.parser;

import com.stottlerhenke.simbionic.common.Enum;

public class EParamDir extends Enum{
  private EParamDir(int state) { super(state);}

  public static final EParamDir kNone = new EParamDir(-1);
  public static final EParamDir kIn = new EParamDir(0);
  public static final EParamDir kOut = new EParamDir(1);
  public static final EParamDir kInOut = new EParamDir(2);

  public static EParamDir getTypeFromInt(int value){
    switch(value){
      case -1: return kNone;
      case 0: return kIn;
      case 1: return kOut;
      case 2: return kInOut;
    }
    return null;
  }
}